import request from '@/utils/request'

// 查询数据统计列表
export function listBase(query) {
  return request({
    url: '/system/base/list',
    method: 'get',
    params: query
  })
}

// 查询仓库名称列表
export function listStock(query) {
  return request({
    url: '/system/base/Stocklist',
    method: 'get',
    params: query
  })
}








// 查询数据统计详细
export function getBase(baseId) {
  return request({
    url: '/system/base/' + baseId,
    method: 'get'
  })
}

// 新增数据统计
export function addBase(data) {
  return request({
    url: '/system/base',
    method: 'post',
    data: data
  })
}

// 修改数据统计
export function updateBase(data) {
  return request({
    url: '/system/base',
    method: 'put',
    data: data
  })
}

// 删除数据统计
export function delBase(baseId) {
  return request({
    url: '/system/base/' + baseId,
    method: 'delete'
  })
}
